import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
  state:{
    isLogin:false,
    admin:"",
    phone:"",
    list:[]
  },
  mutations:{
    loginRe(state,user){
        state.isLogin=user.islogin;
        state.admin=user.name;
        state.phone=user.phone
    },
    exit(state,Exit){
        state.isLogin=Exit;
    },
    communication(state,list){
      state.list=list
    }
  },
  actions:{

  }
});